package config

type ConsulConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type JwtConfig struct {
	SigningKey string `mapstructure:"key"`
}

type SubServiceConfig struct {
	Name string `mapstructure:"name"`
}

type SrvConfig struct {
	Port           int              `mapstructure:"port"`
	Host           string           `mapstructure:"host"`
	Name           string           `mapstructure:"name"`
	Tags           []string         `mapstructure:"tags"`
	ConsulConf     ConsulConfig     `mapstructure:"consul"`
	SubServiceConf SubServiceConfig `mapstructure:"subservice"`
	JwtInfo        JwtConfig        `mapstructure:"jwt"`
}
